package com.pi.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pi.model.BaseEntity;

import java.util.Date;

/**
 * @author TomFang
 * @version 1.0
 * @description: 数据源配置对象
 * @date 2025/3/26 16:26
 */
public class DataSourceConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId
    private Long id;

    /** 数据源 */
    private String dataSource;

    /** 数据源名称 */
    private String dataSourceName;

    /** 数据源用户 */
    private String username;

    /** 数据源密码 */
    private String password;

    /** 数据源jdbcUrl */
    private String jdbcUrl;

    /** 数据源驱动类 */
    private String driverClass;

    /** 类型：1=关系型数据库、2=交易日志和快照采集 */
    private String type;

    /** 请求URL */
    private String url;

    /** 请求类型：1=get、2=post */
    private String requestType;

    /** 请求头信息 */
    private String requestHeader;

    /** 请求参数 */
    private String requestParam;


    /** 删除标志 **/
    private String delFlag;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDataSource() {
        return dataSource;
    }

    public void setDataSource(String dataSource) {
        this.dataSource = dataSource;
    }

    public String getDataSourceName() {
        return dataSourceName;
    }

    public void setDataSourceName(String dataSourceName) {
        this.dataSourceName = dataSourceName;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getJdbcUrl() {
        return jdbcUrl;
    }

    public void setJdbcUrl(String jdbcUrl) {
        this.jdbcUrl = jdbcUrl;
    }

    public String getDriverClass() {
        return driverClass;
    }

    public void setDriverClass(String driverClass) {
        this.driverClass = driverClass;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getRequestType() {
        return requestType;
    }

    public void setRequestType(String requestType) {
        this.requestType = requestType;
    }

    public String getRequestHeader() {
        return requestHeader;
    }

    public void setRequestHeader(String requestHeader) {
        this.requestHeader = requestHeader;
    }

    public String getRequestParam() {
        return requestParam;
    }

    public void setRequestParam(String requestParam) {
        this.requestParam = requestParam;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }
}
